package com.nutstudio.feitoys.Test;

/**
 * Created by Administrator on 2017/5/2 0002.
 */

public class MyBuilder {
    private int id;
    private String num;
    public MyBuilder build(){

        return this;
    }

    public MyBuilder setId(int id){
        this.id=id;
        return this;
    }
    public MyBuilder setNum(String num){
        this.num=num;
        return this;
    }
    class Builder{
        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getNum() {
            return num;
        }

        public void setNum(String num) {
            this.num = num;
        }

        private int id;
        private String num;
    }
}
